import {createRouter, createWebHistory} from 'vue-router'
import type {RouteRecordRaw} from 'vue-router'
import {memberRoutes} from "@/router/memberRoutes.ts";
import {adminRoutes} from "@/router/adminRoutes.ts";
import {publicRoutes} from "@/router/publicRoutes.ts";

// 合并所有路由
const allRoutes: RouteRecordRaw[] = [
    ...memberRoutes,
    ...adminRoutes,
    ...publicRoutes
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: allRoutes
})

export default router
